/**
 * @ClassName StringDemo05
 * @Description 分隔功能的方法
 * @Author Li
 * @Date 2022/8/1 8:56
 * @ModifyDate 2022/8/1 8:56
 * @Version 1.0
 */
public class StringDemo05 {
    public static void main(String[] args) {
        // 创建字符串对象
        String str = "AAA,BBB,CCC";
        String[] strings = str.split(",");
        for (int i = 0; i < strings.length; i++) {
            // AAA
            // BBB
            // CCC
            System.out.println(strings[i]);
        }
    }
}
